set(CMAKE_CXX_STANDARD 14)

find_package (Eigen3 REQUIRED NO_MODULE)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

set(OPTICAL_FLOW_SRC
    main.cpp
    single_level.cpp
    multi_level.cpp
    tracker.cpp
)

add_executable (run_flow ${OPTICAL_FLOW_SRC})
target_link_libraries(run_flow 
    ${OpenCV_LIBS} 
    Eigen3::Eigen 
)
